package kandl.automation.spring.config;

import kandl.automation.reporting.LoggingResultReporter;
import kandl.automation.reporting.ResultReporter;
import kandl.automation.steprunner.selenium.MacWebDriverFactory;
import kandl.automation.steprunner.selenium.WebDriverFactory;

import org.springframework.context.annotation.Bean;
import org.springframework.context.annotation.Configuration;
import org.springframework.context.annotation.Profile;

@Configuration
@Profile("mac")
public class MacConfig {

    @Bean
    public WebDriverFactory webDriverFactory() {
        return new MacWebDriverFactory();
    }

    @Bean
    public ResultReporter resultReporter() {
        return new LoggingResultReporter();
    }
}
